//
//  WWKTableViewCell.m
//  WWK个人中心
//
//  Created by 王文景 on 16/7/4.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "WWKTableViewCell.h"
#import "MYModel.h"


@interface WWKTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *icon;

@property (weak, nonatomic) IBOutlet UILabel *title;

@property (weak, nonatomic) IBOutlet UILabel *subtitle;


@end

@implementation WWKTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setMy:(MYModel *)My
{
    _My = My;
    self.icon.image = [UIImage imageNamed:My.icon];
    self.title.text = My.title;
    self.subtitle.text = My.subtitle;
    
    
}

@end
